package com.jbit.utils;

import org.springframework.util.DigestUtils;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

public class TestMain {
    public static void main(String[] args) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        String md5 = DigestUtils.md5DigestAsHex("123456".getBytes("utf-8"));
        System.out.println(md5);


    }
}
